package GameMap;

import org.simpleframework.xml.Element;
/**
 * @author Thomas Felder
 *
 */


public class mChatMessage {
	@Element
	String playerName;
	@Element
	String playerMsg;
	/**
	 * Contains the information we need for chatmessages.
	 * @param String playerName
	 * @param String playerMsg
	 * @author Thomas Felder
	 */
	public mChatMessage(@Element(name="playerName")String username, @Element(name="playerMsg")String msg) {
		this.playerName = username;
		this.playerMsg = msg;

	}
	
	
	public String getPlayerName(){
		return playerName;
	}
	public String getplayerMsg(){
		return playerMsg;
	}


	@Override
	public String toString() {
		return "mChatMessage ["
				+ (playerName != null ? "playerName=" + playerName + ", " : "")
				+ (playerMsg != null ? "playerMsg=" + playerMsg : "") + "]";
	}
	
	
}
